using System.Xml.Serialization;
using Commons.Models.Settings.Matchers.Operators;

namespace Commons.Models.Settings.Dtos.Locks
{
	public class UserStatsUnlockConditionDto : IUnlockConditionDto
	{
        [XmlAttribute(AttributeName = "lifes", Type = typeof(int))]
        public int Lifes { get; set; }

        [XmlAttribute(AttributeName = "credits", Type = typeof(int))]
        public int Credits { get; set; }

        [XmlAttribute(AttributeName = "floor", Type = typeof(int))]
        public int Floor { get; set; }

        [XmlAttribute(AttributeName = "score", Type = typeof(int))]
        public int Score { get; set; }

        [XmlAttribute(AttributeName = "xp", Type = typeof(int))]
        public int Xp { get; set; }

        [XmlAttribute(AttributeName = "xp_level", Type = typeof(int))]
		public int XpLevel { get; set; }

		[XmlAttribute(AttributeName = "operator", Type = typeof(string))]
		public string Operator { get; set; }

		public UserStatsUnlockConditionDto()
		{
			Operator = OperatorType.Ge.Name;
		}
	}
}
